<template>
  <div>
    <samp v-for="item in ruleTypeData" :key="item.code">
      <samp  v-if="item.code==ruleTypeVal">
        <el-tag type="success" v-if="item.code=='MINI_2013'"> {{item.name}}</el-tag>
        <el-tag type="primary" v-else-if="item.code=='NORMAL_2019'"> {{item.name}}</el-tag>
        <el-tag type="info" v-else> {{item.name}}</el-tag>
      </samp>
    </samp>

  </div>
</template>

<script setup>
import useUserStore from "@/store/modules/user.js";

const props = defineProps({
  ruleTypeVal: {
    type: String,
    default: ""
  },
});
 const ruleTypeData = useUserStore().enumData.FinRuleType;

</script>